home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1989 / Dec 89 / 0232-Scrollers and clippi-Dec89 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.8 KB  |  44 lines  |  [TEXT/GEOL]

  1. Item    8455861                         19-Dec-89        12:29
  2.  
  3. From:   ANIMATRIXDEV                    Animatrix, David Goldman,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Sub:    Scrollers and clipping prob.
  8.  
  9.  
  10. Hi!
  11.  
  12. I have a TGridView placed inside a TScroller. I would like to allow the user to
  13. drag a cell of the gridview and drop it on top of another cell. This part is
  14. working fine except for the fact that the gray outline that is being dragged is
  15. clipped to the gridviews bounds. I have set fViewConstrain in my command object
  16. to false thinking that this would allow the user to drag the outline anywhere
  17. INSIDE the window.  If the window is larger than the gridview the fact that the
  18. outline being dragged disappears at some arbitrary ( to the user ) position in
  19. the white content area of the window is disconcerting.
  20.  
  21. I tried to FocusOnSuperView in my TrackFeedBack method. All is well as far as
  22. the clipping is concerned, EXCEPT that the coordinates passed to the
  23. TrackFeedBack method are not offset correctly by the scrolled amount for the
  24. gridview. This causes the hotspot of the cursor and the outline to be offset by
  25. the scrolled amount - producing another disconcerting problem for the end user.
  26.  
  27. I also tried setting the cliprect to be 'wide open' in the TrackFeedback method
  28. and NOT focussing on the superview. Unfortunately the scroll bars can now get
  29. stomped on.
  30.  
  31. It seems to me that I am missing something very obvious. It is not that I want
  32. to focus on the desktop ( which I understand is not working in 2.0b9 ), nor
  33. that I want to focus on any view other than the one with which I am concerned.
  34. I just want to 'pretend' that the gridview takes up all the white space in the
  35. window, without disturbing the relationship between the number of cells and the
  36. scroll bars.
  37.  
  38. Any ideas?? Thanks for your time.
  39.  
  40.  
  41. regards
  42. Steven Marcus@AnimtrixDev.
  43.  
  44.